package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Test {
    public static void main(String[] args) {
        Student student = new Student("张三", 22);
        System.out.println("学生姓名：" + student.getName() + "，年龄：" + student.getAge());
             student.study();
             Worker worker = new Worker("李四", 25);
             System.out.println("工人姓名：" + worker.getName() + "，年龄：" + worker.getAge());

             worker.work();
         }
}
